package org.com.yz.dal.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 事务表
 * </p>
 *
 * @author wzc123
 * @since 2018-07-18
 */
@Getter
@Setter
@TableName("deposit_transaction")
public class DepositTransaction extends Model<DepositTransaction> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id_deposit_transaction", type = IdType.AUTO)
    private Integer idDepositTransaction;
    /**
     * 事务号
     */
    @TableField("transaction_no")
    private String transactionNo;
    /**
     * 事务类型
     */
    @TableField("transaction_type")
    private String transactionType;
    /**
     * 外部追踪号
     */
    @TableField("out_trans_no")
    private String outTransNo;
    @TableField("id_mch_accnt_charge_up")
    private Integer idMchAccntChargeUp;
    /**
     * 商户号
     */
    @TableField("mch_no")
    private String mchNo;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;



    @Override
    protected Serializable pkVal() {
        return this.idDepositTransaction;
    }

    @Override
    public String toString() {
        return "DepositTransaction{" +
        "idDepositTransaction=" + idDepositTransaction +
        ", transactionNo=" + transactionNo +
        ", transactionType=" + transactionType +
        ", outTransNo=" + outTransNo +
        ", idMchAccntChargeUp=" + idMchAccntChargeUp +
        ", mchNo=" + mchNo +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
